import Vue from 'vue';

// vant 按需引入组件
import { Button } from 'vant';
Vue.use(Button);

import { Swipe, SwipeItem } from 'vant';
Vue.use(Swipe).use(SwipeItem);

import { Row, Col } from 'vant';
Vue.use(Row).use(Col)

import { Icon } from 'vant';
Vue.use(Icon)

import { Toast } from 'vant';
Vue.use(Toast);

import { Loading } from 'vant';
Vue.use(Loading);

import { Grid, GridItem } from 'vant';
Vue.use(Grid);
Vue.use(GridItem);

import { Image as VanImage } from 'vant';

Vue.use(VanImage)

import { Lazyload } from 'vant';

Vue.use(Lazyload);

// 注册时可以配置额外的选项
Vue.use(Lazyload, {
    lazyComponent: true,
});